package org.meetunexpectedly.service.middleground;

import com.baomidou.mybatisplus.extension.service.IService;
import org.meetunexpectedly.entity.middleground.Permission;

import java.util.List;
import java.util.Map;

/**
 * @Description: 权限服务接口
 * @Author: pupil
 * @Date: 2024/09/03 下午 8:30
 */
public interface PermissionService extends IService<Permission> {
    /**
     * 初始化用户菜单
     * @param userId
     * @return
     */
    Map<String, Object> initMenu(Long userId);

    /**
     * 查询权限树形结构
     * @return
     */
    List<Permission> treeSelect();

    /**
     * 删除权限
     * @param id 权限id
     * @return
     */
    Boolean removePermission(Long id);
}
